package com.itheima.reggie.common;

/**
 * 维护ThreadLocal 类
 */
public class BaseContext {
   public static ThreadLocal<Long> threadLocal=new ThreadLocal<>();

    public static Long getCurrentId(){
       return threadLocal.get();
    }

    public static void setCurrentId(Long empId){
       threadLocal.set(empId);
    }


}
